﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using LinqToPi.Attributes;

namespace LinqToPi
{
    [DataContract]
    public class PiValue
    {
        [IdentitySpecification]
        [DataMember]
        public string Tag { get; set; }
        [IdentitySpecification]
        [DataMember]
        public DateTime Time { get; set; }
        [DataMember]
        public int Status { get; set; }
        [DataMember]
        public double? Value { get; set; }
        [DataMember]
        public bool? Questionable { get; set; }
        [DataMember]
        [DbReadOnly]
        public bool? Substituted { get; set; }
        [DataMember]
        [DbReadOnly]
        public bool? Annotated { get; internal set; }
        [DataMember]
        public string Annotations { get; set; }
    }
}
